import request from "@/utils/request.js";

export const getRecommend = () => {
	return request({
		url: '/travel/products/list',
		method: 'get'
	})
}

export const getProductById = (id) => {
	return request({
		url:`/travel/products/${id}/basic`,
		method: 'get'
	})
}
export const getItinerariesById = (id) => {
	return request({
		url:`/travel/products/${id}/itineraries`,
		method: 'get'
	})
}
export const getPricingById = (id) => {
	return request({
		url:`/travel/products/${id}/pricing`,
		method: 'get'
	})
}

	
export const getCarouselImages = () => {
	return request({
		url:"/travel/carousel/list",
		method: 'get'
	})
}

	
// export const enrollment = (productId) => {
// 	return request({
// 		url:"/travel/order/create",
// 		method:'post',
// 		data: productId 
// 	})
// }